package com.cc.flyingfish.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @author CHENCHEN
 * @title
 * @createTime 2023-03-12 18:34
 */
@Configuration
public class WebSocketConfig {

    @Bean
    public ServerEndpointExporter serverEndpointExporter(){
        //发现websocket服务
        return new ServerEndpointExporter();
    }
}
